RFR: 8321939: [GenShen] ShenandoahOldEvacRatioPercent=100 fails with divide-by-zero [v2]

Kelvin Nilsen kdnilsen at openjdk.org
Wed Dec 13 22:05:11 UTC 2023


On Wed, 13 Dec 2023 21:54:06 GMT, Y. Srinivas Ramakrishna <ysr at openjdk.org> wrote:

>> ah, yes, I used the so-called "componendo-dividendo" rule from middle school, in this instantiation of the more general schema:
>> 
>> If a/b = c/d, then a/(b-a) = c/(d-c)
>> 
>> It is perhaps not very well-known in modern ratio-proportion pedagogy in grade-school, but is very useful for quick arithemtic.
>> 
>> https://hsm.stackexchange.com/questions/7544/etymology-of-some-terms-used-in-ratio-and-proportion-in-old-algebra-textbooks
>
> I'll add the justification in the comment.

Thanks.  Your recollection of middle-school math is better than mine...  :)

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

PR Review Comment: https://git.openjdk.org/shenandoah/pull/369#discussion_r1425931096


More information about the shenandoah-dev mailing list