See
|
if (IsDynamicScope(moduleHnd)) |
|
{ |
|
*length = GetDynamicResolver(moduleHnd)->GetStringLiteralLength(metaTOK); |
|
} |
Currently, it only returns string literal's length and doesn't return actual content - it makes it impossible for dynamically emitted code to benefit from #65288 optimization. It's very important for compiled regexes (old-style Compiled flag) and should fix this #65222 (comment) regression
Most likely we need to change the signature to accept a buffer rather than returning it.
See
runtime/src/coreclr/vm/jitinterface.cpp
Lines 681 to 684 in 316797b
Currently, it only returns string literal's length and doesn't return actual content - it makes it impossible for dynamically emitted code to benefit from #65288 optimization. It's very important for compiled regexes (old-style Compiled flag) and should fix this #65222 (comment) regression
Most likely we need to change the signature to accept a buffer rather than returning it.