1. A method to indicate to a dynamic compiler of a multitasking virtual machine when the dynamic compiler can skip generating native code for a class initialization barrier when compiling a program method, wherein a runtime representation of classes by the multitasking virtual machine includes a shared runtime data structure that is shared by multiple tasks, and wherein a native code produced by the dynamic compiler extends the shared runtime data structure representing classes and can be executed serially or concurrently by multiple tasks of the multitasking virtual machine, the method comprising: augmenting the shared runtime data structure representing a shared part of a class with an initializer field; and using the initializer field of the class to determine whether a platform-independent instruction of the program method may trigger an initialization of the class.