مناطق بيانات وقت التشغيل
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
name where each kind of data lives at runtime.
الموضوعات المخطط لها
- Heap: all objects and arrays, shared by threads, managed by the GC.
- Thread stacks: one per thread, holding frames with locals and call state.
- Metaspace: class metadata, in native memory (it replaced PermGen).
- Code cache: JIT-compiled machine code.
- There is also other native memory: direct buffers, thread stacks, GC structures. Heap size is not total process size.
تفاصيل المخطط المبدئي
عرض عملي
a diagram: heap and metaspace shared; N stacks; code cache; native memory around it.
اختبر فهمك
Where does new Order() live?
أظهر الإجابة
On the heap; the reference variable is in a stack frame.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.