GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — enableCreationStackTracking() for tests · restmad/objectbox-java@18c88fc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java/src/main/java/io/objectbox
    • InternalAccess.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎objectbox-java/src/main/java/io/objectbox/InternalAccess.java‎

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/InternalAccess.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ public static <T> void releaseWriter(Box<T> box, Cursor<T> writer) {
5151
public static <T> void commitWriter(Box<T> box, Cursor<T> writer) {
5252
box.commitWriter(writer);
5353
}
54+
55+
/** Makes creation more expensive, but lets Finalizers show the creation stack for dangling resources. */
56+
public static void enableCreationStackTracking() {
57+
Transaction.TRACK_CREATION_STACK = true;
58+
Cursor.TRACK_CREATION_STACK = true;
59+
}
5460
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.