Poisoning in HotSpot

Kim Barrett kim.barrett at oracle.com
Sun Dec 1 16:13:43 UTC 2024


On 12/1/24 10:16 AM, Kim Barrett wrote:
> On 12/1/24 7:35 AM, Kim Barrett wrote:
>>
>> How about this: [code snipped]
>>
>
> I decided I like this enough to work on implementing it.

Unfortunately, there's a potentially fatal problem with this whole approach.
We don't have a mechanism for turning it off over some context. We need this
because there are files that ere not ours that are subject to our headers.
Consider gtest, for example. Apparently there are *lots* of calls to 
sprintf,
for example.

I've not yet come up with a way for this new mechanism to deal with that.

I've also not figured out how things are working now.  Why don't we get lots
of warnings for those calls to sprintf now?  I would have guessed there was
some suppression of -Wattribute-warning somewhere, but I'm not finding such.



More information about the hotspot-dev mailing list