equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
247 return bucket->object(); |
247 return bucket->object(); |
248 } |
248 } |
249 |
249 |
250 // The ciObject does not yet exist. Create it and insert it |
250 // The ciObject does not yet exist. Create it and insert it |
251 // into the cache. |
251 // into the cache. |
252 Handle keyHandle(key); |
252 Handle keyHandle(Thread::current(), key); |
253 ciObject* new_object = create_new_object(keyHandle()); |
253 ciObject* new_object = create_new_object(keyHandle()); |
254 assert(keyHandle() == new_object->get_oop(), "must be properly recorded"); |
254 assert(keyHandle() == new_object->get_oop(), "must be properly recorded"); |
255 init_ident_of(new_object); |
255 init_ident_of(new_object); |
256 assert(Universe::heap()->is_in_reserved(new_object->get_oop()), "must be"); |
256 assert(Universe::heap()->is_in_reserved(new_object->get_oop()), "must be"); |
257 |
257 |