RFR: 8217450: Add PackageEntry::locked_lookup_only

Aleksey Shipilev shade at redhat.com
Tue Jan 22 15:36:40 UTC 2019


On 1/22/19 4:21 PM, Claes Redestad wrote:
> On 2019-01-22 16:11, Aleksey Shipilev wrote:
>> Mmm. Compilers might complain we do not use the returned value? I think the previous way made a bit
>> more sense, and was a bit faster. Just move the local variable declaration?
> 
> Ok - updated http://cr.openjdk.java.net/~redestad/8217450/open.01/ in
> place and running some sanity tests before push.

You can coalesce these two lines:
 211         PackageEntry* pkg;
 212         pkg = package_table->locked_create_entry_or_null(pkg_list->at(x),
ModuleEntryTable::javabase_moduleEntry());

;)

-Aleksey



More information about the hotspot-runtime-dev mailing list