mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 06:00:26 +00:00
add trace logging
This commit is contained in:
parent
aca7909054
commit
5fce5a930d
@ -145,6 +145,13 @@ void StubCodeGenerator::retrieve_unsafe_access_handlers(address start, address e
|
||||
// Helper used to restore ZGC pointer colouring relocation addresses
|
||||
// retrieved from the AOT cache.
|
||||
void StubCodeGenerator::register_reloc_addresses(GrowableArray<address> &entries, int begin, int count) {
|
||||
LogTarget(Trace, aot, codecache, stubs) lt;
|
||||
if (lt.is_enabled()) {
|
||||
LogStream ls(lt);
|
||||
for (int i = begin; i < count; i++) {
|
||||
ls.print_cr("Registered reloc address " INTPTR_FORMAT, p2i(entries.at(i)));
|
||||
}
|
||||
}
|
||||
ZBarrierSetAssembler *zbs = (ZBarrierSetAssembler*)BarrierSet::barrier_set()->barrier_set_assembler();
|
||||
zbs->register_reloc_addresses(entries, begin, count);
|
||||
}
|
||||
@ -153,8 +160,16 @@ void StubCodeGenerator::register_reloc_addresses(GrowableArray<address> &entries
|
||||
// during generation of the stub which spans [start, end) in order to
|
||||
// allow them to be saved to an AOT cache.
|
||||
void StubCodeGenerator::retrieve_reloc_addresses(address start, address end, GrowableArray<address> &entries) {
|
||||
int l = entries.length();
|
||||
ZBarrierSetAssembler *zbs = (ZBarrierSetAssembler*)BarrierSet::barrier_set()->barrier_set_assembler();
|
||||
zbs->retrieve_reloc_addresses(start, end, entries);
|
||||
LogTarget(Trace, aot, codecache, stubs) lt;
|
||||
if (lt.is_enabled()) {
|
||||
LogStream ls(lt);
|
||||
for (int i = l; i < entries.length(); i++) {
|
||||
ls.print_cr("retrieved reloc address " INTPTR_FORMAT, p2i(entries.at(i)));
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // INCLUDE_ZGC
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user