On Sat, 7 Nov 2020 17:22:21 GMT, Daniel D. Daugherty <dcu...@openjdk.org> wrote:

>> src/hotspot/share/runtime/synchronizer.cpp line 1520:
>> 
>>> 1518:     // deflated in this cycle.
>>> 1519:     size_t deleted_count = 0;
>>> 1520:     for (ObjectMonitor* monitor: delete_list) {
>> 
>> I didn't realize C++ has a "foreach" loop construct! Is this in our allowed 
>> C++ usage?
>
> @fisk - this one is for you... :-)

Yeah this is one of the new cool features we can use. I thought it is allowed, 
because it is neither in the excluded nor undecided list of features in our 
doc/hotspot-style.md file.

-------------

PR: https://git.openjdk.java.net/jdk/pull/642

Reply via email to