bldc/tests/test_memory_3.lisp

21 lines
373 B
Common Lisp
Raw Normal View History

Squashed 'lispBM/lispBM/' changes from 1eceb43f..1267d006 1267d006 added one more memory test a9782eda added two tests that try to be quite hard on the lbm_memory. 5c0841f8 small additions to matvec bcb1ad7f added vector multiplication by scalar ce5025cc small additions to matvec. 1758b335 renamed blas_extensions to matvec extensions as they wont provide the same set of operations as a blas library usually does 2e48e6b4 fix silly typo in lbm_memory.c 62154010 only initialized mutices 1 time d1dbfd7c added a test of events cb97d623 only add events to the event queue if there is an event handler 7a642222 removed usage of send_message in process_events e3a68115 events are moving into the evaluator 64239a9b tweaks to random extensions d61950d9 removed a print from sierpinski f8a1d586 added sierpinski and flake examples to sdlrepl 72d8e4f4 added random number extensions to sdlrepl ba9c449a changed constants involved in the pseudorandom generator. 8806e369 remove left over debug printing 10cc7fab added random number generator extensions 184c756b added memory leakage tests for string extensions 4373713d work in progress linear_algebra extensions 135591bd added str-merge test 7bff0e97 added a test. more to follow e1aad339 added a small set of runtime system related extensions 5495b5da updates to custom type interface. 4e3b408a rename strnlen to strlen_max 03644f64 pulling in string extensions from vedderb\bldc into string_extensions.c 294f013b grabbed a few extra array-extensions into array_extensions.c from Vedderb/BLDC 87f95e67 adding all the Math extensions from Vedder/BLDC to math_extensions.c git-subtree-dir: lispBM/lispBM git-subtree-split: 1267d006e90085920a3de720480dc2d19d71c8ff
2023-01-24 00:19:05 -08:00
(def n (* (word-size) (mem-longest-free)))
Squashed 'lispBM/lispBM/' changes from 1eceb43f..1267d006 1267d006 added one more memory test a9782eda added two tests that try to be quite hard on the lbm_memory. 5c0841f8 small additions to matvec bcb1ad7f added vector multiplication by scalar ce5025cc small additions to matvec. 1758b335 renamed blas_extensions to matvec extensions as they wont provide the same set of operations as a blas library usually does 2e48e6b4 fix silly typo in lbm_memory.c 62154010 only initialized mutices 1 time d1dbfd7c added a test of events cb97d623 only add events to the event queue if there is an event handler 7a642222 removed usage of send_message in process_events e3a68115 events are moving into the evaluator 64239a9b tweaks to random extensions d61950d9 removed a print from sierpinski f8a1d586 added sierpinski and flake examples to sdlrepl 72d8e4f4 added random number extensions to sdlrepl ba9c449a changed constants involved in the pseudorandom generator. 8806e369 remove left over debug printing 10cc7fab added random number generator extensions 184c756b added memory leakage tests for string extensions 4373713d work in progress linear_algebra extensions 135591bd added str-merge test 7bff0e97 added a test. more to follow e1aad339 added a small set of runtime system related extensions 5495b5da updates to custom type interface. 4e3b408a rename strnlen to strlen_max 03644f64 pulling in string extensions from vedderb\bldc into string_extensions.c 294f013b grabbed a few extra array-extensions into array_extensions.c from Vedderb/BLDC 87f95e67 adding all the Math extensions from Vedder/BLDC to math_extensions.c git-subtree-dir: lispBM/lispBM git-subtree-split: 1267d006e90085920a3de720480dc2d19d71c8ff
2023-01-24 00:19:05 -08:00
(def a (bufcreate (/ n 2)))
Squashed 'lispBM/lispBM/' changes from 1eceb43f..1267d006 1267d006 added one more memory test a9782eda added two tests that try to be quite hard on the lbm_memory. 5c0841f8 small additions to matvec bcb1ad7f added vector multiplication by scalar ce5025cc small additions to matvec. 1758b335 renamed blas_extensions to matvec extensions as they wont provide the same set of operations as a blas library usually does 2e48e6b4 fix silly typo in lbm_memory.c 62154010 only initialized mutices 1 time d1dbfd7c added a test of events cb97d623 only add events to the event queue if there is an event handler 7a642222 removed usage of send_message in process_events e3a68115 events are moving into the evaluator 64239a9b tweaks to random extensions d61950d9 removed a print from sierpinski f8a1d586 added sierpinski and flake examples to sdlrepl 72d8e4f4 added random number extensions to sdlrepl ba9c449a changed constants involved in the pseudorandom generator. 8806e369 remove left over debug printing 10cc7fab added random number generator extensions 184c756b added memory leakage tests for string extensions 4373713d work in progress linear_algebra extensions 135591bd added str-merge test 7bff0e97 added a test. more to follow e1aad339 added a small set of runtime system related extensions 5495b5da updates to custom type interface. 4e3b408a rename strnlen to strlen_max 03644f64 pulling in string extensions from vedderb\bldc into string_extensions.c 294f013b grabbed a few extra array-extensions into array_extensions.c from Vedderb/BLDC 87f95e67 adding all the Math extensions from Vedder/BLDC to math_extensions.c git-subtree-dir: lispBM/lispBM git-subtree-split: 1267d006e90085920a3de720480dc2d19d71c8ff
2023-01-24 00:19:05 -08:00
(defun f ()
(progn
(+ 1 2)
(bufcreate (/ n 2)))) ;; Should not succeed
Squashed 'lispBM/lispBM/' changes from 1eceb43f..1267d006 1267d006 added one more memory test a9782eda added two tests that try to be quite hard on the lbm_memory. 5c0841f8 small additions to matvec bcb1ad7f added vector multiplication by scalar ce5025cc small additions to matvec. 1758b335 renamed blas_extensions to matvec extensions as they wont provide the same set of operations as a blas library usually does 2e48e6b4 fix silly typo in lbm_memory.c 62154010 only initialized mutices 1 time d1dbfd7c added a test of events cb97d623 only add events to the event queue if there is an event handler 7a642222 removed usage of send_message in process_events e3a68115 events are moving into the evaluator 64239a9b tweaks to random extensions d61950d9 removed a print from sierpinski f8a1d586 added sierpinski and flake examples to sdlrepl 72d8e4f4 added random number extensions to sdlrepl ba9c449a changed constants involved in the pseudorandom generator. 8806e369 remove left over debug printing 10cc7fab added random number generator extensions 184c756b added memory leakage tests for string extensions 4373713d work in progress linear_algebra extensions 135591bd added str-merge test 7bff0e97 added a test. more to follow e1aad339 added a small set of runtime system related extensions 5495b5da updates to custom type interface. 4e3b408a rename strnlen to strlen_max 03644f64 pulling in string extensions from vedderb\bldc into string_extensions.c 294f013b grabbed a few extra array-extensions into array_extensions.c from Vedderb/BLDC 87f95e67 adding all the Math extensions from Vedder/BLDC to math_extensions.c git-subtree-dir: lispBM/lispBM git-subtree-split: 1267d006e90085920a3de720480dc2d19d71c8ff
2023-01-24 00:19:05 -08:00
(spawn-trap f)
(def res (recv ((exit-error (? tid) (? e)) e)
Squashed 'lispBM/lispBM/' changes from 1eceb43f..1267d006 1267d006 added one more memory test a9782eda added two tests that try to be quite hard on the lbm_memory. 5c0841f8 small additions to matvec bcb1ad7f added vector multiplication by scalar ce5025cc small additions to matvec. 1758b335 renamed blas_extensions to matvec extensions as they wont provide the same set of operations as a blas library usually does 2e48e6b4 fix silly typo in lbm_memory.c 62154010 only initialized mutices 1 time d1dbfd7c added a test of events cb97d623 only add events to the event queue if there is an event handler 7a642222 removed usage of send_message in process_events e3a68115 events are moving into the evaluator 64239a9b tweaks to random extensions d61950d9 removed a print from sierpinski f8a1d586 added sierpinski and flake examples to sdlrepl 72d8e4f4 added random number extensions to sdlrepl ba9c449a changed constants involved in the pseudorandom generator. 8806e369 remove left over debug printing 10cc7fab added random number generator extensions 184c756b added memory leakage tests for string extensions 4373713d work in progress linear_algebra extensions 135591bd added str-merge test 7bff0e97 added a test. more to follow e1aad339 added a small set of runtime system related extensions 5495b5da updates to custom type interface. 4e3b408a rename strnlen to strlen_max 03644f64 pulling in string extensions from vedderb\bldc into string_extensions.c 294f013b grabbed a few extra array-extensions into array_extensions.c from Vedderb/BLDC 87f95e67 adding all the Math extensions from Vedder/BLDC to math_extensions.c git-subtree-dir: lispBM/lispBM git-subtree-split: 1267d006e90085920a3de720480dc2d19d71c8ff
2023-01-24 00:19:05 -08:00
((exit-ok (? tid) (? r)) r)))
(check (and (eq res out_of_memory) ;; error caught
(= (+ 1 2) 3))) ;; eval is alive