Sunday 15 February 2015

java - How does reflection affect Perm size? -


I understand that the magnitude size is used to store meta data, including byte code, static content, etc. Are there.

My question affects the finite size of the reflection, if ever this happens, I mean that if the Program-A uses the normal way of running objects and Program-B uses all the reflections, How will both programs compare the perm-size ?

When you execute the code, the permity will increase which will load new sections < / Strong> or internal strings reflection sections should be loaded to make sure I am not convinced that the reflection API partially uses strings, but it is not difficult to find needed.

For example, the method getDeclaredMethod (string name, class

  random random = new random ()    

; while {true} {try {X.class.getDeclaredMethod (toBinaryString (random.nextLong ());} hold (exception e) {}}

It will not make any difference in the real world application.


No comments:

Post a Comment