mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8049684: pstack crashes on java core dump
Reviewed-by: sundar, sspitsyn
This commit is contained in:
parent
3f0a945468
commit
ae2cb9b6e3
2 changed files with 6 additions and 0 deletions
|
@ -260,6 +260,9 @@ static int parse_vmstructs(jvm_agent_t* J) {
|
|||
uint64_t base;
|
||||
int err;
|
||||
|
||||
/* Clear *vmp now in case we jump to fail: */
|
||||
memset(vmp, 0, sizeof(VMStructEntry));
|
||||
|
||||
err = ps_pglobal_lookup(J->P, LIBJVM_SO, "gHotSpotVMStructs", &sym_addr);
|
||||
CHECK_FAIL(err);
|
||||
err = read_pointer(J, sym_addr, &gHotSpotVMStructs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue