Project

General

Profile

« Previous | Next » 

Revision 334b69e5

Added by nobu (Nobuyoshi Nakada) over 3 years ago

rb_id_serial_to_id: return unregistered ID as an internal ID

def foo(*); ->{ super }; end

This code makes anonymous parameters which is not registered as an
ID. The problem is that when Ractors try to scan getlocal
instructions, it puts the Symbol corresponding to the parameter
in to a hash. Since it is not registered, we end up with a
strange exception. This commit wraps the unregistered ID in an
internal ID so that we get the same exception for ... as *.

Co-Authored-By: Aaron Patterson
Co-Authored-By: John Hawthorn