MCPcopy
hub / github.com/awnumar/memguard / Panic

Function Panic

core/exit.go:84–87  ·  view source on GitHub ↗

* Panic is identical to the builtin panic except it purges the session before calling panic. */

(v interface{})

Source from the content-addressed store, hash-verified

82Panic is identical to the builtin panic except it purges the session before calling panic.
83*/
84func Panic(v interface{}) {
85 Purge() // creates a new key so it is safe to recover from this panic
86 panic(v)
87}

Callers 14

NewEnclaveFunction · 0.92
OpenMethod · 0.92
ScrambleBytesFunction · 0.92
SafePanicFunction · 0.92
SealMethod · 0.92
NewEnclaveFunction · 0.85
OpenFunction · 0.85
TestPanicFunction · 0.85
EncryptFunction · 0.85
NewBufferFunction · 0.85
FreezeMethod · 0.85
MeltMethod · 0.85

Calls 1

PurgeFunction · 0.70

Tested by 1

TestPanicFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…