Mercurial > hg > graal-compiler
diff src/share/vm/code/debugInfo.hpp @ 17885:bd58c9e40d0a
8035735: Metaspace::contains become extremely slow in some cases
Summary: Call is_metadata instead which does less work for the call in debugInfo.hpp which is called for all compiled code stack frames.
Reviewed-by: jmasa, dcubed
author | coleenp |
---|---|
date | Mon, 03 Mar 2014 13:58:52 -0500 |
parents | 55fb97c4c58d |
children | b51e29501f30 52b4284cb496 |
line wrap: on
line diff
--- a/src/share/vm/code/debugInfo.hpp Fri Apr 11 20:02:37 2014 +0000 +++ b/src/share/vm/code/debugInfo.hpp Mon Mar 03 13:58:52 2014 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, 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 @@ -273,8 +273,8 @@ } Method* read_method() { Method* o = (Method*)(code()->metadata_at(read_int())); - assert(o == NULL || - o->is_metaspace_object(), "meta data only"); + // is_metadata() is a faster check than is_metaspace_object() + assert(o == NULL || o->is_metadata(), "meta data only"); return o; } ScopeValue* read_object_value();