diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 22:02:58 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 22:02:58 +0000 |
| commit | 3d302985f9e235be007589e79bcc3825800ae83b (patch) | |
| tree | b1d86d2481c5d99ce05c363472791d4331de3ff4 /gc.c | |
| parent | 0ee43c86a11915b549a0a8b52515601e6521f6c5 (diff) | |
| download | ruby-3d302985f9e235be007589e79bcc3825800ae83b.tar.gz ruby-3d302985f9e235be007589e79bcc3825800ae83b.tar.xz ruby-3d302985f9e235be007589e79bcc3825800ae83b.zip | |
* eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
messages of preallocated special exceptions also.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2531,7 +2531,8 @@ Init_GC(void) rb_define_module_function(rb_mObSpace, "_id2ref", id2ref, 1); - nomem_error = rb_exc_new2(rb_eNoMemError, "failed to allocate memory"); + nomem_error = rb_exc_new3(rb_eNoMemError, + rb_obj_freeze(rb_str_new2("failed to allocate memory"))); OBJ_TAINT(nomem_error); OBJ_FREEZE(nomem_error); |
