RFR: 8324129: C2: Remove some ttyLocker usages in preparation for JDK-8306767

Emanuel Peter epeter at openjdk.org
Mon Jan 22 10:44:43 UTC 2024


On Mon, 22 Jan 2024 10:33:42 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> I'm removing some instances of `ttyLocker`. Instead of locking, I first put all the output on a `stringStream`, and then print this stream all at once, which is atomic.
>> 
>> Removing the `ttyLocker` is nice, because it means we have less interference with other locking mechanisms, such as the `extra_data_lock` cases I have to introduce with [JDK-8306767](https://bugs.openjdk.org/browse/JDK-8306767).
>> 
>> @coleenp wished that I do this separately, so I filed this RFE here.
>
> Marked as reviewed by dholmes (Reviewer).

Thanks @dholmes-ora @iwanowww @vnkozlov for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/17486#issuecomment-1903708335


More information about the hotspot-dev mailing list