This is a followup work for JDK-8178349 which cache builtin class loader constraints to avoid call v/i table initialization, to implement same for custom loader.