8140685: Fix backtrace building to not rely on constant pool merging

Store Symbol* for the name in the backtrace

Reviewed-by: gtriantafill, dholmes, kbarrett, lfoltan
This commit is contained in:
Coleen Phillimore 2017-02-01 17:56:22 -05:00
parent fe4d1bb602
commit 5a2d8cb819
5 changed files with 59 additions and 63 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -466,7 +466,7 @@ class java_lang_Throwable: AllStatic {
trace_methods_offset = 0,
trace_bcis_offset = 1,
trace_mirrors_offset = 2,
trace_cprefs_offset = 3,
trace_names_offset = 3,
trace_next_offset = 4,
trace_size = 5,
trace_chunk_size = 32
@ -1331,7 +1331,7 @@ class java_lang_StackTraceElement: AllStatic {
static oop create(const methodHandle& method, int bci, TRAPS);
static void fill_in(Handle element, InstanceKlass* holder, const methodHandle& method,
int version, int bci, int cpref, TRAPS);
int version, int bci, Symbol* name, TRAPS);
// Debugging
friend class JavaClasses;