- EffectiveC++ . . . . 16 matches
== Memory management ==
* ''Initialization of the pointer in each of the constructors. If no memory is to be allocated to the pointer in a particular constructor, the pointer should be initialized to 0 (i.e., the null pointer). - 생성자 각각에서 포인터 초기화''
* ''Deletion of the existing memory and assignment of new memory in the assignment operator. - 포인터 멤버에 다시 메모리를 할당할 경우 기존의 메모리 해제와 새로운 메모리의 할당''
세번째 '''소멸자에서 포인터 삭제'''에 관한 것을 제대로 안해주면 메모리 유출(memory leak)으로 그냥 처리되기 때문에 클래스에 포인터 멤버를 추가할 때마다 반드시 명심해야 한다.
=== Item 7: Be prepared for out-of-memory conditions. ===
set_new_handler를 이용한 memory 할당 실패처리.[[BR]]
void noMoreMemory ()
cerr << "Unable to satisfy request for memory\n";
set_new_handler (noMoreMemory);
int *pVigdataArray = new int [100000000]; // 100000000개의 정수공간을 할당할 수 없다면 noMoreMemory가 호출.
void *memory;
memory = ::operator new(size); // allocation
return memory;
void noMoreMemory(); // decl. of function to
// call if memory allocation
X::set_new_handler(noMoreMemory);
// set noMoreMemory as X's
X *px1 = new X; // if memory allocation
// fails, call noMoreMemory
string *ps = new string; // if memory allocation
- MoreEffectiveC++/Operator . . . . 8 matches
string *ps = new string("Memory Management");
void *rawMemory = operator new(sizeof(string));
string *ps = new string("Memory Management");
void *memory = operator new(sizeof(string));
call string::string("Memory Management") on *memory;
string *ps = static_cast<string*>(memory);
그렇지만 여러분이 raw memory로 객체를 할당한다면 초기화 루틴이 필요하다. [[BR]]
해당 함수(construcWidgetInBuffer())는 버퍼에 만들어진 Widget 객체의 포인터를 반환하여 준다. 이렇게 호출할 경우 객체를 임의 위치에 할당할수 있는 능력 때문에 shared memory나 memory-mapped I/O 구현에 용이하다 constructorWidget에 보이는건 바로
* Deletion and Memory Deallocation
void operator delete(void * memoryToBeDeallocated);
void freeShared(void *memory);
void *shareMemory = mallocShared(sizeof(Widget));
Widget *pw = constructWidgetInBuffer(shareMemory, 10); // placement new이닷!
delete pw; // 이렇게 해서는 안된다. sharedMemory는 mallocShared에서 할당되는데 어찌 할수 있으리요.
- OurMajorLangIsCAndCPlusPlus/stdlib.h . . . . 5 matches
== 함수 (Functions) - Memory Functions ==
printf( "Insufficient memory available\n" );
printf( "Memory space allocated for path name\n" );
printf( "Memory freed\n" );
Memory space allocated for path name
Memory freed
- Gof/Facade . . . . 4 matches
* MemoryObject 는 데이터 저장소를 나타낸다.
* MemoryObjectCache는 물리적 메모리에서의 MemoryObject의 데이터를 캐쉬한다.
MemoryObjectCache는 실제로는 캐쉬 정책을 지역화시키는 Strategy Pattern이다.
- OurMajorLangIsCAndCPlusPlus/XML/조현태 . . . . 3 matches
void FreeMyMemorys(SReadBlock* suchBlock)
FreeMyMemorys(suchBlock->nextBlocks[i]);
FreeMyMemorys(rootBlock);
- zennith/MemoryHierarchy . . . . 3 matches
== Memory Hierarchy ==
=== Main Memory (Virtual Memory System) ===
- DebuggingSeminar_2005/DebugCRT . . . . 2 matches
|| _CRTDBG_CHECK_ALWAYS_DF || _CrtCheckMemory() 함수를 모든 new, delete 함수에 대해서 자동 호출 되도록 지정한다.[[BR]] 이 함수는 할당된 공간의 유효성을 지속적으로 체크한다. 즉 domainerror나 기타 메모리 access에 관한 부분을 검사한다. 대신 오버헤드가 상당하다. 그러나 그만큼 디버깅의 효율성을 높여줄 수 있다. ||
|| _CRTDBG_LEAK_CHECK_DF || 프로그램이 종료되는 시점에서 _CrtDumpMemoryLeaks()를 호출. 메모리 해제에 실패한 경우 그 정보를 얻을 수 있다. ||
//Allocate some more memory.
_tcscpy( pNew, _T("New'd memory...") );
_tcscpy( pNew2, _T("more New'd memory...") );
_tcscpy( pMemLeak, _T("Malloc'd memory...") );
|| _CRT_WARN || 경고 메시지 예)memory leak ||
- Eclipse/PluginUrls . . . . 2 matches
=== Memory Monitor ===
* Memory 사용정보를 보여주고 ["GarbageCollection"]을 사용가능하게 해 주는 Plugin, 시간을 설정해두면 주기적으로 알아서 GC를 해줌.
- FromDuskTillDawn/조현태 . . . . 2 matches
void freeMemory()
freeMemory();
- AKnight'sJourney . . . . 1 match
||Time Limit||1000MS||Memory Limit||65536K||
- AKnight'sJourney/강소현 . . . . 1 match
||Memory||3852K||Time||360MS||
- AnEasyProblem/강성현 . . . . 1 match
||Memory||736K||Time||16MS||
- AnEasyProblem/강소현 . . . . 1 match
||Memory||3656K||Time||375MS||
- C++/SmartPointer . . . . 1 match
// circular member setting will not free memory
// Memory will not be freed forever.
- CommonPermutation . . . . 1 match
Time Limit : 4seconds , Memory Limit: 32MB
- CompleteTreeLabeling . . . . 1 match
||Memory Limit||32 MB||
- Euclid'sGame/강소현 . . . . 1 match
||Memory||3516K||Time||297MS||
- IdeaPool/PrivateIdea . . . . 1 match
= Memo =
- Java/DynamicProxy . . . . 1 match
* Generic caching decorator(See DecoratorPattern) - [http://www.onjava.com/pub/a/onjava/2003/08/20/memoization.html Memoization in Java Using Dynamic Proxy Classes], and [http://roller.anthonyeden.com/page/SKI_BUM/20030810#dynamicproxy_net#dynamicproxy_net .NET equivalent]
- JollyJumpers/강소현 . . . . 1 match
||Memory||5224K||Time||360MS||
- JollyJumpers/김태진 . . . . 1 match
||Memory||184K||Time||110MS||
- LinuxSystemClass/Exam_2004_1 . . . . 1 match
Linux 에서의 Memory 관리시 binary buddy algorithm 을 이용한다. 어떻게 동작하는지 쓰시오.
- MemoryUsageInJava . . . . 1 match
return Runtime().getRuntime().freeMemory();
- Ones/송지원 . . . . 1 match
|| Run ID || User || Problem || Result || Memory || Time || Language || Code Length ||
- WorldCup/송지원 . . . . 1 match
|| Run ID || User || Problem || Result || Memory || Time || Language || Code Length || Submit Time ||
- WorldCupNoise/권순의 . . . . 1 match
||Memory||260K||Time||16MS||
- ZeroPageServer/set2001 . . . . 1 match
* Memory: 192712k/196608k
- ZeroPageServer/set2002_815 . . . . 1 match
=== Memo ===
- whiteblue . . . . 1 match
* ["whiteblue/LinkedListAddressMemo"]
- 고슴도치의 사진 마을 . . . . 1 match
=== Memo & Plan ===
- 고슴도치의 사진 마을처음화면 . . . . 1 match
=== Memo & Plan ===
- 김준호 . . . . 1 match
# 3월 16일에는 앞으로 새싹교실이 어떻게 진행될것인지와 컴퓨터의 기본장치들을 배웠습니다 예를들어 CPU, Main Memory 등등 입니다.
- 새싹교실/2011/學高/8회차 . . . . 1 match
* Memory 상에서의 array
- 영호의해킹공부페이지 . . . . 1 match
A buffer is a block of computer memory that holds many instances of the same
dynamically at run time, and its growth will either be down the memory
in memory the string is stored to DX:DS. Remember each register has a high
Choose menu 3 (ME Memory Functions).
- 지도분류 . . . . 1 match
["zennith/MemoryHierarchy"]
- 프로그래밍잔치/첫째날후기 . . . . 1 match
1. 충격 이었다.. 라고 하면 너무 일반적인 수식어 일까. 사실 앉아서, 해당 언어들에 대하여 집중 할 수 있는 시간이 주어 지지 않았다는 것이 너무나 아쉬웠다. To Do 로 해야 할일이 추가 되었다. 아니 Memory List로 표현해야 할까?
Found 36 matching pages out of 7555 total pages (2160 pages are searched)
You can also click here to search title.