Skip to content

Commit 0742b45

Browse files
rkennkeclaude
andcommitted
docs(codecache): drop stale "approximate/#677" note now that memoryUsage is exact
With #677 merged, CodeCache::memoryUsage() is accurate on main, so the runtime-stubs accessor comment describing it as an approximation (pending #677) is no longer true. Describe current behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fd1ca88 commit 0742b45

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ddprof-lib/src/main/cpp/hotspot/jitCodeCache.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ class JitCodeCache {
3939

4040
static CodeBlob* findRuntimeStub(const void *address);
4141

42-
// Approximate heap usage of the runtime-stubs code cache, via
43-
// CodeCache::memoryUsage() (a capacity/count-based estimate today; #677
44-
// makes it exact). Read under the shared stubs lock because
45-
// DynamicCodeGenerated() mutates _runtime_stubs (add()/expand()) concurrently.
42+
// Heap usage of the runtime-stubs code cache, via CodeCache::memoryUsage().
43+
// Read under the shared stubs lock because DynamicCodeGenerated() mutates
44+
// _runtime_stubs (add()/expand()) concurrently.
4645
static long long runtimeStubsMemoryUsage();
4746
static bool isJitCode(const void* pc) {
4847
return CodeHeap::contains(pc);

0 commit comments

Comments
 (0)