[EXTERNAL] [jdk17] RFR: 8269865: Async UL needs to handle ERANGE on exceeding SEM_VALUE_MAX [v3]
David Holmes
david.holmes at oracle.com
Wed Jul 7 23:40:31 UTC 2021
On 7/07/2021 6:03 pm, Liu, Xin wrote:
> I had a gtest. I think it can trigger overflow issue on different
> platforms. Since we don't know the cap, we have to increment it one by
> one. I can't hit any assert on MacOS.
>
> TEST(Semaphore, signal_overflow) {
> Semaphore sem(0);
> sem.signal((uint)-1);
> }
Similar here:
Semaphore sem(MAX_INT-1);
for (uintx i = 0; i < max_uintx; i++) {
sem.signal();
}
Test times out after 10 minutes on macOS no errors reported.
David
>
> On 7/6/21 11:58 PM, David Holmes wrote:
>> e due diligence
More information about the hotspot-runtime-dev
mailing list