Open Bug 1487214 Opened 6 years ago Updated 2 years ago

We don't seem to memory-report the memory JitcodeGlobalTable::allocateEntry allocates

Categories

(Core :: JavaScript Engine: JIT, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [overhead:noted])

From a DMD report, we have 34 allocations of 16KiB each that are not reported:

Unreported {
  34 blocks in heap block record 36 of 6,988
  557,056 bytes (557,056 requested / 0 slop)
  Individual block sizes: 16,384 x 34
  0.12% of the heap (26.60% cumulative)
  0.31% of unreported (72.28% cumulative)
  Allocated at {
    #01: replace_malloc(unsigned long) (DMD.cpp:1267, in libmozglue.dylib)
    #02: js::LifoAlloc::getOrCreateChunk(unsigned long) (LifoAlloc.cpp:32, in XUL)
    #03: js::jit::JitcodeGlobalTable::allocateEntry() (LifoAlloc.h:609, in XUL)
    #04: js::jit::JitcodeGlobalTable::addEntry(js::jit::JitcodeGlobalEntry const&) (JitcodeMap.cpp:503, in XUL)
    #05: js::jit::BaselineCompiler::compile() (BaselineCompiler.cpp:293, in XUL)
    #06: js::jit::BaselineCompile(JSContext*, JSScript*, bool) (BaselineJIT.cpp:266, in XUL)
    #07: js::jit::CanEnterBaselineMethod(JSContext*, js::RunState&) (BaselineJIT.cpp:310, in XUL)
    #08: js::jit::MaybeEnterJit(JSContext*, js::RunState&) (Jit.cpp:153, in XUL)
  }
}
We have plans to remove this code soon, so I think we should hold off doing anything here for now.
Whiteboard: [overhead:noted]
Priority: -- → P3
Component: JavaScript Engine → JavaScript Engine: JIT

From skimming source code, it looks like this still exists.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.