Advertisement

Value Types

  • Siva Challa
  • Artur Laksberg

Abstract

As you may remember from the previous chapter, gc classes can only be instantiated on the GC heap. However, this is not always what you want. Creating an object on the heap is a costly operation and could trigger garbage collection. Further, accessing a gc object requires a pointer dereference, which doesn’t come free either. Finally, having to use operator new every time you need to create an object would be a nuisance.

Keywords

Primitive Type Garbage Collector Boxed Type Boxed Versus Object Copying 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Siva Challa and Artur Laksberg 2002

Authors and Affiliations

  • Siva Challa
    • 1
  • Artur Laksberg
    • 1
  1. 1.RedmondUSA

Personalised recommendations