8216302: StackTraceElement::fill_in can use cached Class.name

Reviewed-by: coleenp, dholmes, mchung
This commit is contained in:
Aleksey Shipilev 2019-01-09 20:28:16 +01:00
parent 79c92eadc3
commit f44e59355c
8 changed files with 140 additions and 31 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2019, 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
@ -240,6 +240,7 @@ class java_lang_Class : AllStatic {
static int _class_loader_offset;
static int _module_offset;
static int _component_mirror_offset;
static int _name_offset;
static bool offsets_computed;
static int classRedefinedCount_offset;
@ -310,6 +311,8 @@ class java_lang_Class : AllStatic {
static void set_module(oop java_class, oop module);
static oop module(oop java_class);
static oop name(Handle java_class, TRAPS);
static int oop_size(oop java_class);
static int oop_size_raw(oop java_class);
static void set_oop_size(HeapWord* java_class, int size);