Home | Previous Page | Next Page   Creating User-Defined Routines > Managing Memory >

Managing Stack Space

Session threads execute C UDRs and their thread-stack space is allocated from a common region in shared memory. The thread stack stores nonshared data for the UDRs and system routines that the thread executes. This stack contains everything that would normally be on the execution stack, including the following:

Like all memory that UDRs use, stack segments can be overrun. The database server can only check for stack violations when the UDR yields. Therefore, you must ensure that you perform the following tasks within a UDR:

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]