File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,12 @@ private static void reclaim() {
68
68
69
69
private static void test (int objectSize ) throws Exception {
70
70
final var beforeAlloc = capacity ();
71
+ final var timeBeforeAlloc = System .nanoTime ();
71
72
72
73
// Allocate memory
73
74
log ("Allocating" );
74
75
allocate (objectSize );
75
76
76
- final var timeAfterAlloc = System .nanoTime ();
77
77
final var afterAlloc = capacity ();
78
78
79
79
// Reclaim memory
@@ -87,7 +87,7 @@ private static void test(int objectSize) throws Exception {
87
87
88
88
log ("Uncommit started" );
89
89
final var timeUncommitStart = System .nanoTime ();
90
- final var actualDelay = (timeUncommitStart - timeAfterAlloc ) / 1_000_000 ;
90
+ final var actualDelay = (timeUncommitStart - timeBeforeAlloc ) / 1_000_000 ;
91
91
92
92
log ("Waiting for uncommit to complete" );
93
93
while (capacity () > beforeAlloc ) {
You can’t perform that action at this time.
0 commit comments